﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rapid
{
    class ResultInterpretation
    {
        static RapidDataDataContext db = new RapidDataDataContext();
        public static string GetInterpretation(EObservation observation)
        {            
            return db.Observations.Single(ob => ob.TypeDrug == 1 && ob.ObservationType == observation.ToString()).Interpretation;
        }

        public static string GetInterpretationMonitoring(EObservation observation)
        {
            return db.Observations.Single(ob => ob.TypeDrug == 2 && ob.ObservationType == observation.ToString()).Interpretation;
        }

        public static string GetCommonInterpretation(EObservationCommon commonObservation)
        {
            return db.Observations.Single(ob => ob.TypeDrug == 3 && ob.ObservationType == commonObservation.ToString()).Interpretation;
        }
    }
}
